﻿@using StudentManagement.ViewModels;
@model IEnumerable<StudentStatistics>

@{
    ViewBag.PageTitle = "学生信息统计";
}

<h3>@ViewBag.PageTitle</h3>

<table class="table  table-striped">
    <thead>
        <tr>
            <th>入学时间</th>
            <th>学生人数</th>
        </tr>
    </thead>

    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.EnrollmentDate)
            </td>
            <td>
                @item.StudentCount
            </td>
        </tr>
    }
</table>

<div class="form-group row">
    <div class="col-sm-10">
        <a asp-controller="student" asp-action="index" class="btn btn-primary">返回</a>
    </div>
</div>
